/**
 * CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

package com.cmcc.zysoft.infocollection.controller;

import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.cmcc.zysoft.infocollection.common.BaseController;
import com.cmcc.zysoft.infocollection.service.TagPcService;

/**
 * @author 袁凤建
 * <br />邮箱: yuan.fengjian@ustcinfo.com
 * <br />描述: TagController.java
 * <br />版本: 1.0.0
 * <br />日期: 2013-9-28 下午5:12:53
 * <br />CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

@Controller
@RequestMapping("/pc/tag")
public class TagController extends BaseController {

	/**
	 * 属性名称: tagPcService.
	 * 类       型: TagPcService.
	 */
	@Resource
	private TagPcService tagPcService;
	
	/**
	 * 选择标签页面.
	 * @return String
	 */
	@RequestMapping("/selectTags.htm")
	public String selectTags() {
		return "/pc/resource/selectTags";
	}
	
	/**
	 * 根据关键字查询标签信息(无分页).
	 * @param keyword 关键字
	 * @return map
	 */
	@RequestMapping("/list.htm")
	@ResponseBody
	public Map<String, Object> getTags(String keyword) {
		return this.tagPcService.getTags(keyword);
	}
}